<?php

namespace app\controller;
use app\model\MidTypeModel;
use think\annotation\route;
use think\response\Json;

class MidTypeController
{
    /**
     * @route ("getAllMidTypes")
     * @param MidTypeModel $midTypeModel
     * @return Json
     */
    public function getAllMidTypes(MidTypeModel $midTypeModel): Json
    {
        return json($midTypeModel->getAllMidTypes());
    }
}